package com.spring.boot.demo.common.resp;

/**
 * @author ZhuYouBin
 * @version 1.0.0
 * @Date: 2022/10/29 21:13
 * @Description 统一响应结果枚举类
 */
public enum ResultEnum {
    SUCCESS(20000, "响应成功"),
    FAILED(50000, "操作异常");

    /** 状态码 */
    private Integer statusCode;
    /** 提示信息 */
    private String message;

    ResultEnum(int statusCode, String message) {
        this.statusCode = statusCode;
        this.message = message;
    }

    public Integer getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(Integer statusCode) {
        this.statusCode = statusCode;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
